using UnityEngine;

public class CoinManager
{
	public static int coin;

	public static void GetCoin()
	{
		coin = PlayerPrefs.GetInt("COIN");
	}

	public static void UpCoin()
	{
		PlayerPrefs.SetInt("COIN", coin);
		PlayerPrefs.Save();
	}

	public static bool CheckBuy(int price)
	{
		if (coin < price)
		{
			return false;
		}
		return true;
	}
}
